#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

#include <assert.h>

char* my_strcpy(char* dest, const char* str)
{
	assert(dest && str);
	char* tmp = dest;
	while (*dest++ = *str++)
	{
		;
	}
	return tmp;
}

int main()
{
	char ch1[] = "xxxxxxxxxxx";
	char ch2[] = "xiaobite";
	printf("%s", my_strcpy(ch1, ch2));
	return 0;
}